# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=wl-mirror
pkgver=0.15.0
pkgrel=0
pkgdesc="A simple Wayland output mirror client"
url="https://github.com/Ferdi265/wl-mirror"
license="GPL-3.0-or-later"
arch="all"
makedepends="
	cmake
	mesa-dev
	samurai
	scdoc
	wayland-dev
	wayland-protocols
	"
subpackages="$pkgname-doc"
source="https://github.com/Ferdi265/wl-mirror/releases/download/v$pkgver/wl-mirror-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DINSTALL_DOCUMENTATION=ON \
		-DINSTALL_EXAMPLE_SCRIPTS=OFF \
		-DWLR_PROTOCOL_DIR="$builddir/proto/wlr-protocols"
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
79397e53626ae23b10b1930c62e7ec04e4981e17752616ebed96bdded9517d5f97e9f5285a8a0697ca8056eb3583ed1b6120b986c1a1c791cb01df3c97207710  wl-mirror-0.15.0.tar.gz
"
